package com.java2207.group1.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Consult {

    //编号
    private Integer id;

    //咨询时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;

    //咨询类型
    private String type;

    //老人姓名
    private String o_name;

    //老人性别
    private String o_sex;

    //老人年龄
    private String o_age;

    //咨询人姓名
    private String c_name;

    //咨询人性别
    private String c_sex;

    //咨询人联系电话
    private String phone;

    //与老人关系
    private String relation;

    //接待人
    private String receiver;

}
